import Cookies from 'js-cookie'

// const TokenKey = 'Admin-Token'
const TokenKey = 'lims_token'


export function getToken() {
  let token = Cookies.get(TokenKey)
  return token ? JSON.parse(token).tokenId : '02FBF981-DFB7-4F2C-A5C1-D9FB5487D5DD'
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
